package com.jnu.experience07;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.jnu.experience07.data.Data_operate;

public class datashowMainActivity extends AppCompatActivity {
    private TextView textView;
    private Button button;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_datashow_main);
        textView = findViewById(R.id.main_tv);
        button = findViewById(R.id.button_3);
        new Data_operate().Read("/data/data/com.jnu.experience07/files/mydata.dat", textView);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent();
                Bundle bundle=new Bundle();
                intent.putExtras(bundle);
                datashowMainActivity.this.finish();
            }
        });

    }
}